package com.luosan.portalservice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.luosan.portalservice.mapper.MainCardMapper;
import com.luosan.portalservice.pojo.MainCard;
import com.luosan.portalservice.service.MainCardService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class MainCardServiceImpl extends ServiceImpl<MainCardMapper, MainCard> implements MainCardService {
    @Override
    public Page<MainCard> getPageList(Integer pageNum, Integer pageSize) {
        return this.page(new Page<>(pageNum, pageSize),
                new QueryWrapper<MainCard>().orderByAsc("sort_order"));
    }
}
